<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>文件管理器</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="file_manager.css">
</head>
<body>
    <div id="file-manager">
        <div style="display: grid; grid-template-rows: auto 1fr; min-height: 100vh;">
            <div style="display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; background: #f5f5f5; border-bottom: 1px solid #ddd;">
                <div style="display: flex; gap: 10px;">
                    <button id="refresh-files" style="padding: 5px 10px; cursor: pointer; min-width: 80px;">
                        <i class="fa-solid fa-rotate"></i> 刷新
                    </button>
                    <button onclick="window.location.href='client_monitor.html'" style="padding: 5px 10px; cursor: pointer; min-width: 100px;">
                        <i class="fa-solid fa-desktop"></i> 客户端监控
                    </button>
                </div>
                
                <h2 style="margin: 0; text-align: center;">服务器文件</h2>
                
                <div class="connection-status" style="width: 50px;">
                    <div class="status-light"></div>
                </div>
            </div>
            
        <div id="file-list-container" style="padding: 20px;"></div>
        </div>
    </div>

    <script src="file_manager.js"></script>
</body>
</html>
